{% extends "community/base.html" %}

{% block head %}
{% endblock %}

{% block body %}
<!--顶部导航栏-->
<div class="topblock">
<a href="{{ url_for('community.index')}}">
<img class="home" src="../static/layui/images/community/home.png"></a>
<div class="search">
     <form method="GET" action="{{ url_for('community.search') }}">
    <input type="text" placeholder="搜索您感兴趣的内容" class="layui-input" name="key">
      <div class="search_btn">
        <button class="layui-btn layui-btn-primary">搜索</button>
      </div>
     </form>
</div>
<div class="tabbar">
<ul class="layui-nav layui-bg-green" lay-bar="disabled">
        <li class="layui-nav-item"><a href="{{ url_for('community.category',post_type=1) }}" style="color: black;font-size: 16px">读者社区</a></li>
        <li class="layui-nav-item"><a href="{{ url_for('community.category',post_type=2) }}" style="color: black;font-size: 16px">图书专区</a></li>
        <li class="layui-nav-item"><a href="{{ url_for('community.category',post_type=4) }}" style="color: black;font-size: 16px">打听求助</a></li>
        <li class="layui-nav-item"><a href="{{ url_for('community.category',post_type=3) }}" style="color: black;font-size: 16px">资源分享</a></li>
</ul>
</div>
    <div class="topright">
     <img class="icon" src="../static/layui/images/community/account.png">
     <img class="icon" src="../static/layui/images/community/set.png">
     <img class="icon" src="../static/layui/images/community/help.png">
    <button type="button" class="layui-btn layui-btn-warm layui-btn-radius">发布</button>
    </div>
</div>

<div class="mainbox">
<div class="row" style="margin-top: 20px;">
    <div class="col"></div>
    <div class="col-10" style="background-color: #fff;padding: 20px;">
        <h3 class="page-title">{{announce.title}}</h3>
        <p class="question-info">
            <span>时间：{{announce.create_time}}</span>
        </p>
        <hr>
        <p class="question-content">{{announce.content}}</p>
        {% if announce.image_url %}
        <img class="post_image" src="{{ announce.image_url }}" alt="">
        {% endif %}
        <hr>

    </div>
    <div class="col"></div>
</div>
</div>

<script src="//cdn.staticfile.org/layui/2.9.9/layui.js"></script>
  <script>


 </script>
{% endblock %}